package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @Author wangxinyi
 * @Date 2024/12/2 14:44
 */
@Validated
@RestController("openServeProviderController")
@RequestMapping("/open/serve-provider")
@Api(tags = "运营端 - 服务人员或机构相关接口")
public class ServeProviderContrller {


    @Autowired
    private IServeProviderService iServeProviderService;

    @PostMapping("/institution/register")
    @ApiOperation("机构端注册账号")
    public void register(@RequestBody InstitutionRegisterReqDTO dto){
        iServeProviderService.register(dto);
    }

}
